package com.zhongwang.business.module.taskManage.service;

import com.zhongwang.business.module.taskManage.dao.TaskFormRelationDao;
import com.zhongwang.business.module.taskManage.model.TaskFormRelationModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskFormRelationService {
    @Autowired
    private TaskFormRelationDao taskFormRelationDao;
    /**
     * 执行添加
     * @param model
     * @return
     */
    public int addTaskFormRelation(TaskFormRelationModel model){
        return taskFormRelationDao.addTaskFormRelation(model);
    }

    /**
     * 执行修改
     * @param model
     * @return
     */
    public int delTaskFormRelation(TaskFormRelationModel model){
        return taskFormRelationDao.delTaskFormRelation(model);
    }

    /**
     * 执行查询
     * @param model
     * @return
     */
    public List<TaskFormRelationModel> selectTaskList(TaskFormRelationModel model){
        return taskFormRelationDao.selectTaskFormRelation(model);
    }
}
